﻿using System;
using System.Collections.Generic;
using iESELibrary.ESEHandler;
using iESELibrary.DESCrypto.Vault;

namespace ConsoleApplication
{
	class Program
	{
		static void Main(string[] args)
		{
			using (ESEDatabase eseDb = new ESEDatabase(@"C:\Projects\Evaluation013\tstglobal\ntds.dit", @"C:\Projects\Evaluation013\tstglobal\SYSTEM"))
			{
				Queue<SortedList<string, string>> result = eseDb.RetrieveTranslatedAttributes("datatable",
					ESEDatabase.JetColumn.RID
					| ESEDatabase.JetColumn.sAMAccountName
					| ESEDatabase.JetColumn.userAccountControl
					| ESEDatabase.JetColumn.EncryptedNTHash
					| ESEDatabase.JetColumn.DecryptedNTHash
					,
					ESEDatabase.JetColumn.sAMAccountName
					| ESEDatabase.JetColumn.userAccountControl
					| ESEDatabase.JetColumn.EncryptedNTHash
					| ESEDatabase.JetColumn.DecryptedNTHash
					);

				while(result.Count > 0)
				{
				}
			}
		}
	}
}
